package com.xyh.transaction.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyh.transaction.common.Constant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Collection;
import java.util.List;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVo {

    private Integer id;

    private String username;

    private Collection<String> roleNames;

    private Integer age;

    private String avatar;

    private Integer gender; // 0：女  1：男

    private String idCard;

    private String email;

    private Integer status; // 0：禁用 1：启用

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime createTime;
}
